﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dycox.ComponentModel;

namespace Dycox.Enterprise
{
    public class TestResult
    {
        public TestResult(MessageSet messages)
        {
            if (messages == null)
                throw new ArgumentNullException("messages");

            _messages = messages;
        }

        public TestResult()
            : this(new MessageSet())
        {

        }

        public bool Success
        {
            get { return _messages.Success; }
        }

        private MessageSet _messages;

        public MessageSet Messages
        {
            get { return _messages; }
        }

    }
}
